package phoenix.web.test_objects.data_providers.crm;

import phoenix.core.PhoenixManager;
import phoenix.core.base.extensions.TestBaseExt;
import phoenix.core.data_models.TestUserDataModel;

public class MailDataProviders extends TestBaseExt
{
	public MailDataProviders(PhoenixManager p_phoenix)
	{
		super(p_phoenix);
	}

	public Object[][] messageLetterData()
	{
		TestUserDataModel p_userSender = manager.db().getUserBy(testModel().getSiteName(), testUser().defineMembershipStatus("female"), "female");
		TestUserDataModel p_userRecipient = testUser().print();

		return new Object[][]
				{

						// Positive test
						{ p_userSender, p_userRecipient }
				};
	}

	public Object[][] resendLetterData()
	{
		testUser().setGender("female")
				.setEmail(testUser().makeNewEmail(manager.config().MAIL_USER))
				.setPassword("qweqweQ")
				.setBirthDate("1990" + "-" + "11" + "-" + "12");

		return new Object[][]
				{
						// Positive test
						{ testUser() }
				};
	}

	public Object[][] changeLetterData()
	{
		testUser().setGender("female")
				.setEmail(testUser().makeNewEmail(manager.config().MAIL_USER))
				.setPassword("qweqweQ")
				.setBirthDate("1990" + "-" + "11" + "-" + "12");

		return new Object[][]
				{

						// Positive test
						{ testUser(), testUser().makeNewEmail(manager.config().MAIL_USER) }
				};
	}
}
